package com.surfilter.admin.project.monitor.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.surfilter.admin.framework.aspectj.lang.annotation.Excel;
import com.surfilter.admin.framework.web.domain.BaseEntity;

/**
 * 节点管理对象 cmp_gather
 * 
 * @author JinHuaTao
 * @date 2020-05-10
 */
public class Gather extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 应用ID */
    @Excel(name = "应用ID")
    private String appId;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String appName;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String ip;

    /** 端口 */
    @Excel(name = "端口")
    private Integer port;

    /** 节点状态（0离线 1在线） */
    @Excel(name = "节点状态", readConverterExp = "0=离线,1=在线")
    private Integer status;

    /** 最后一次注册时间 */
    private Long lastRegTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setPort(Integer port) 
    {
        this.port = port;
    }

    public Integer getPort() 
    {
        return port;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public Long getLastRegTime() {
        return lastRegTime;
    }

    public void setLastRegTime(Long lastRegTime) {
        this.lastRegTime = lastRegTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("appName", getAppName())
            .append("ip", getIp())
            .append("port", getPort())
            .append("status", getStatus())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("lastRegTime", getLastRegTime())
            .toString();
    }
}
